﻿<Window x:Class="InstallExtension"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Stardust"
    xmlns:sc="clr-namespace:Stardust.Core.Controls"
    xmlns:shell="clr-namespace:Microsoft.Windows.Shell;assembly=Microsoft.Windows.Shell" 
    Title="Get more extensions" Height="506" Width="608">
    
    <Window.Resources>
        <Style TargetType="{x:Type local:InstallExtension}">
            <Setter Property="shell:WindowChrome.WindowChrome">
                <Setter.Value>
                    <shell:WindowChrome GlassFrameThickness="-1" />
                </Setter.Value>
            </Setter>

            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type local:InstallExtension}">
                        <Grid>

                            <ContentPresenter Margin="{Binding Source={x:Static shell:SystemParameters2.Current}, Path=WindowNonClientFrameThickness}" Content="{TemplateBinding Content}"/>

                           

                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    
    <Grid>
        <Border Margin="12,12,9,195" Name="Border1" Background="#28FFFFFF" Opacity="1" CornerRadius="8"
                BorderThickness="1" BorderBrush="Transparent">
            <ScrollViewer Margin="3" BorderBrush="Transparent" Background="Transparent" VerticalScrollBarVisibility="Auto">
                <WrapPanel x:Name="ExtensionsPanel"></WrapPanel>
            </ScrollViewer>
        </Border>
        <Border BorderThickness="1" Height="120" Margin="12,0,9,69" Name="Border2" VerticalAlignment="Bottom"
                CornerRadius="8" Background="#95FFFFFF" BorderBrush="Transparent">
            <Grid Margin="5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="440*" />
                    <ColumnDefinition Width="119*" />
                </Grid.ColumnDefinitions>
                <RichTextBox Background="Transparent" BorderBrush="Transparent" VerticalScrollBarVisibility="Auto" x:Name="DescriptionBox"
                             Grid.Column="0" IsDocumentEnabled="False" IsEnabled="True" IsReadOnly="True" />
                <sc:StardustButton x:Name="InstallButton" Margin="0,0,6,5" Style="{DynamicResource StardustButtonStyle}" Text="Install" Height="103" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="93" Image="Resources\install.png" Grid.Column="1" />
            </Grid>
        </Border>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,0,0,29" Name="ProgressText" VerticalAlignment="Bottom" Width="545" />
        
        <ProgressBar Height="20" HorizontalAlignment="Left" Margin="12,0,0,3" Name="ProgressBar" VerticalAlignment="Bottom" Width="545"
                     Style="{DynamicResource ProgressBarStyle}">
            
        </ProgressBar>
    </Grid>
    
</Window>
